import type { IQuery, TableConfig } from '@/api/config/types';
//查询参数接口
interface typeQuery {
  dictName: '';
  dictType: '';
  status: '';
}

let queryObj: IQuery<typeQuery> = {
  pageNum: 1,
  pageSize: 10,
  total: 0,
  dictName: '',
  dictType: '',
  status: '',
  orderByColumn: 'create_time',
};
const resetQuery = () => {
  typeTable.value.query = {
    ...queryObj,
  };
};
export const typeTable = ref<TableConfig<SystemDict>>({
  //作用：勾选的唯一标识
  rowKey: 'dictId',
  data: [],
  loading: false,
  moduleName: 'type',
  viewMode: 'table',
  keys: [],
  query: queryObj,
  contextmenu: [],
  reset: resetQuery,
});
